#!/bin/bash
export JAVA_HOME=/opt/swap/jdk7
export JRE_HOME=/opt/swap/jdk7/jre

##停止服务
ps -ef | grep java | awk '{print $2}' | xargs kill -9
#删除之前的工程
rm -rf /opt/swap/tomcat/apache-tomcat-7.0.54/webapps/docker-web
#重新启动
/opt/swap/tomcat/apache-tomcat-7.0.54/bin/startup.sh
